package br.com.sgc.entities.geral;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import br.com.sgc.entities.medico.Medico;

@Entity
@Table(name="dia_semana", schema="geral")
public class DiaSemana implements Serializable{
	
	private static final long serialVersionUID = 2267537562561147420L;
	
	
	@Id
	@SequenceGenerator(sequenceName="geral.seq_pessoa", name="SEQPESSOA", allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE,  generator="SEQPESSOA")
	private Long id;
	
	@Column(name="dia_semana")
	private Integer diaSemana;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name="medico_id")
	private Medico medico = new Medico();
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name="clinica_id")
	private Clinica clinica = new Clinica();

	public Clinica getClinica() {
		return clinica;
	}

	public void setClinica(Clinica clinica) {
		this.clinica = clinica;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getDiaSemana() {
		return diaSemana;
	}

	public void setDiaSemana(Integer diaSemana) {
		this.diaSemana = diaSemana;
	}

	public Medico getMedico() {
		return medico;
	}

	public void setMedico(Medico medico) {
		this.medico = medico;
	}
	
}
